// 本地存储
export const getItem = (key: string) => {
  const result = localStorage.getItem(key) as string
  try {
    return JSON.parse(result)
  } catch (error) {
    return result
  }
}

export const removeItem = (key: string) => {
  localStorage.removeItem(key)
}
